import Vue from 'vue'
import SvgIcon from '@/components/SvgIcon/index.vue' // svg组件
// 注册为全局组件
Vue.component('svg-icon', SvgIcon)
const req = require.context('./svg', true, /\.svg$/)
// const req_dark =require.context('./night_theme_svg',false,/\.svg$/);
const requireAll = requireContext => requireContext.keys().map(requireContext)
requireAll(req)